package cn.edu.huas.shopping.pojo;

import java.time.LocalDateTime;

public class Product {
    private Integer id;
    private Integer pid;
    private String name;
    private double marketprice;
    private double shopPrice;
    private String pimage;
    private LocalDateTime addTime;
    private String desc;
    private Integer cid;

    public Product() {
    }

    public Product(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Product(Integer id, Integer pid, String name, double marketprice, double shopPrice, String pimage, LocalDateTime addTime, String desc, Integer cid) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.marketprice = marketprice;
        this.shopPrice = shopPrice;
        this.pimage = pimage;
        this.addTime = addTime;
        this.desc = desc;
        this.cid = cid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMarketprice() {
        return marketprice;
    }

    public void setMarketprice(double marketprice) {
        this.marketprice = marketprice;
    }

    public double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(double shopPrice) {
        this.shopPrice = shopPrice;
    }

    public String getPimage() {
        return pimage;
    }

    public void setPimage(String pimage) {
        this.pimage = pimage;
    }

    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", marketprice=" + marketprice +
                ", shopPrice=" + shopPrice +
                ", pimage='" + pimage + '\'' +
                ", addTime=" + addTime +
                ", desc='" + desc + '\'' +
                ", cid=" + cid +
                '}';
    }
}
